package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.CashRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

public interface CashRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CashRecord record);

    int insertSelective(CashRecord record);

    CashRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CashRecord record);

    int updateByPrimaryKey(CashRecord record);

    List<CashRecord> queryByCustomerId(String customerId);

    int getCashAmount(String customerId);

    CashRecord verifyCashRecord(@Param("customerId") String customerId, @Param("status") Integer status);

    List<Map<String, Object>> getCashRecordList22(@Param("status") Integer status,
                                                  @Param("start") Integer start,
                                                  @Param("end") Integer size,
                                                  @Param("search") String search,
                                                  @Param("startTime") String startTime,
                                                  @Param("endTime") String endTime,
                                                  @Param("targetType") Integer targetType);


    int getCashRecordAmount22(@Param("status") Integer status,
                              @Param("search") String search,
                              @Param("startTime") String startTime,
                              @Param("endTime") String endTime,
                              @Param("targetType") Integer targetType);

}